package top.gxw.routelearn.base

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.alibaba.android.arouter.launcher.ARouter

/**
 * author:gxw60
 * date:2021/1/7
 * project:RouteLearn
 * Description:
 */
abstract class BaseActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        ARouter.getInstance().inject(this)
        super.onCreate(savedInstanceState)
    }

    override fun onDestroy() {
        super.onDestroy()
        //不能在此取消//初始化时全局的，销毁也是全局的
        //ARouter.getInstance().destroy();
    }
}